package Work2;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Test {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String str1 = "abcd";
		String str2 = "abcd";
		String str3 = new String("abcd");
		System.out.println(str1 == str2);
		System.out.println(str1==str3);
	}
}
